﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeFinder.Common.Interfaces {
    public interface IRepository<TEntity> where TEntity : class {
        IQueryable<TEntity> GetAll();
        TEntity GetById(object id);
        void Save(TEntity entity);
        void Delete(TEntity entity);
        void Commit();
    }
}
